package Month09.day0915;
import java.util.Arrays;
import java.util.Scanner;

public class Niuke {
    public static void main(String[] args) {
        //BC21 浮点数的个位数字
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] arr = String.valueOf(str).split("\\.");
        int a = Integer.parseInt(arr[1]);
        int count = 0;
        while(a != 0){
            count++;
            a /= 10;
        }
        System.out.println(count);
    }//BC21 浮点数的个位数字
    public static void main1(String[] args){
        Scanner sc = new Scanner(System.in);
        char c = sc.next().charAt(0);
        int a = 'c';
        System.out.println(a);
    }
}
